import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listUser(query) {
  return request({
    url: '/coffee/management/examUser/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getUser(id) {
  return request({
    url: '/coffee/management/examUser/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addUser(data) {
  return request({
    url: '/coffee/management/examUser',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateUser(data) {
  return request({
    url: '/coffee/management/examUser',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delUser(id) {
  return request({
    url: '/coffee/management/examUser/' + id,
    method: 'delete'
  })
}

//获取所有考试
export function getExams() {
  return request({
    url: '/coffee/management/exam/list',
    method: 'get'
  })
}

// 查询【请填写功能名称】列表
export function listPickedUser(query) {
  return request({
    url: '/coffee/management/extractInfo/list',
    method: 'get',
    params: query
  })
}


//word
export function downloadWord(playerId) {
  return request({
    url: '/coffee/management/extractInfo/assessment?playerId='+playerId,
    method: 'post',
    // data: data
  })
}
